class A():
    def __init__(self,name):
        self.name = name
    def pri(self):
        print("a")

class B(A):
    def __init__(self):
        super().__init__('apple')
        # 继承之后 ，直接用self调用父类方法
        self.pri()
    def pp(self):
        self.pri()

b = B().pp()
